﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003D7 RID: 983
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DisplayAvatarData : IMessage<DisplayAvatarData>, IMessage, IEquatable<DisplayAvatarData>, IDeepCloneable<DisplayAvatarData>, IBufferMessage
	{
		// Token: 0x17000C8D RID: 3213
		// (get) Token: 0x06002BD8 RID: 11224 RVA: 0x00078DE8 File Offset: 0x00076FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DisplayAvatarData> Parser
		{
			get
			{
				return DisplayAvatarData._parser;
			}
		}

		// Token: 0x17000C8E RID: 3214
		// (get) Token: 0x06002BD9 RID: 11225 RVA: 0x00078DEF File Offset: 0x00076FEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DisplayAvatarDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000C8F RID: 3215
		// (get) Token: 0x06002BDA RID: 11226 RVA: 0x00078E01 File Offset: 0x00077001
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DisplayAvatarData.Descriptor;
			}
		}

		// Token: 0x06002BDB RID: 11227 RVA: 0x00078E08 File Offset: 0x00077008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarData()
		{
		}

		// Token: 0x06002BDC RID: 11228 RVA: 0x00078E10 File Offset: 0x00077010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarData(DisplayAvatarData other) : this()
		{
			this.pos_ = other.pos_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002BDD RID: 11229 RVA: 0x00078E41 File Offset: 0x00077041
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarData Clone()
		{
			return new DisplayAvatarData(this);
		}

		// Token: 0x17000C90 RID: 3216
		// (get) Token: 0x06002BDE RID: 11230 RVA: 0x00078E49 File Offset: 0x00077049
		// (set) Token: 0x06002BDF RID: 11231 RVA: 0x00078E51 File Offset: 0x00077051
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Pos
		{
			get
			{
				return this.pos_;
			}
			set
			{
				this.pos_ = value;
			}
		}

		// Token: 0x17000C91 RID: 3217
		// (get) Token: 0x06002BE0 RID: 11232 RVA: 0x00078E5A File Offset: 0x0007705A
		// (set) Token: 0x06002BE1 RID: 11233 RVA: 0x00078E62 File Offset: 0x00077062
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06002BE2 RID: 11234 RVA: 0x00078E6B File Offset: 0x0007706B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DisplayAvatarData);
		}

		// Token: 0x06002BE3 RID: 11235 RVA: 0x00078E79 File Offset: 0x00077079
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DisplayAvatarData other)
		{
			return other != null && (other == this || (this.Pos == other.Pos && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002BE4 RID: 11236 RVA: 0x00078EB8 File Offset: 0x000770B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Pos != 0U)
			{
				num ^= this.Pos.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002BE5 RID: 11237 RVA: 0x00078F10 File Offset: 0x00077110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002BE6 RID: 11238 RVA: 0x00078F18 File Offset: 0x00077118
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002BE7 RID: 11239 RVA: 0x00078F24 File Offset: 0x00077124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Pos != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Pos);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002BE8 RID: 11240 RVA: 0x00078F80 File Offset: 0x00077180
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Pos != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Pos);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002BE9 RID: 11241 RVA: 0x00078FD8 File Offset: 0x000771D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DisplayAvatarData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Pos != 0U)
			{
				this.Pos = other.Pos;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002BEA RID: 11242 RVA: 0x00079028 File Offset: 0x00077228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002BEB RID: 11243 RVA: 0x00079034 File Offset: 0x00077234
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.Pos = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001155 RID: 4437
		private static readonly MessageParser<DisplayAvatarData> _parser = new MessageParser<DisplayAvatarData>(() => new DisplayAvatarData());

		// Token: 0x04001156 RID: 4438
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001157 RID: 4439
		public const int PosFieldNumber = 7;

		// Token: 0x04001158 RID: 4440
		private uint pos_;

		// Token: 0x04001159 RID: 4441
		public const int AvatarIdFieldNumber = 12;

		// Token: 0x0400115A RID: 4442
		private uint avatarId_;
	}
}
